export default {
  namespaced: true,
  state: {
    token: '',
    username: '',
    timeout: 0
  },
  mutations: {
    gettoken (state, user) {
      state.token = user.token
      state.username = user.userName
    },
    removetoken (state, token) {
      state.token = token
    },
    updatatime (state, time) {
      state.timeout = time
    }
  },
  actions: {
  }
}
